
<div id="main">
  
  <% if flash[:notice] %>
    <div> <%=h flash[:notice] %> </div>
  <% end %>
  <div>
    <h2>Your Account Information</h2>
    Name: <%=@user.name %><br>
    Username: <%=  @user.user_name %><br>
    E-Mail: <%= @user.email  %> <br>
    <br>
    
    <div>
      <%= link_to "Edit", :controller => "user", :action => "edit", :id => @user.id%>
      
      <br>
      <br>
    </div>
   
  </div>
  



  
</div>

<div id="sub">
  <div>
    <h3>User Menu</h3>
    <ul>
      <li><%= link_to("My Books", :controller => "user", :action => "mybooks")%></li>
      <li><%= link_to("Add a Book", :controller => "book", :action => "new")%></li>
      <li><%= link_to("Match Maker", :controller => "user", :action => "mymatch")%></li>
      <li><%= link_to("My Offers", :controller => "user", :action => "offers")%></li>
    </ul>
  </div>
  
</div>

